//
//  XMCameraController.h
//  XiaoMiao
//
//  Created by 23 on 2018/1/28.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger,CameraAngleType) {
    CameraAngleTypeFaceFront,
    CameraAngleTypeFaceLeft45,
    CameraAngleTypeFaceRight45,
    CameraAngleTypeFaceLeft90,
    CameraAngleTypeFaceRight90,
    CameraAngleTypeFaceTop,
    CameraAngleTypeBodyfront,
    CameraAngleTypeBodyLeft45,
    CameraAngleTypeBodyRight45,
    CameraAngleTypeBodyLeft90,
    CameraAngleTypeBodyRight90,
    CameraAngleTypeBodyBack,
    CameraAngleTypeNormal,
    CameraAngleTypeNone,
};


typedef void(^XMCameraCallback)(UIImage *image);


@interface XMCameraController : UIViewController

/**标准照图片地址*/
@property(nonatomic,copy) NSString *standrandImageUrl;
/**标准照图片*/
@property(nonatomic,strong) UIImage *standrandImage;
/**角度类型*/
@property(nonatomic,assign) CameraAngleType angleType;

/**callback*/
@property(nonatomic,copy) XMCameraCallback callback;

@end
